#include <gtkmm.h>
#include <giomm.h>

#include <iostream>
#include <string>

//saves time compiling, not sure. --Nick
#include "fileBrowserWindow.h"

int main(int argc, char *argv[]) {
    Gtk::Main kit(argc, argv);
/***Start of Nick's code. Please do not alter but feel free to comment.***/
{
    using namespace std;
    using namespace Gio;
    using namespace Glib;

    if(argc < 2){
        cerr << "no, no, NO! Gimme a second argument!" << std::endl;
        exit(-1);
    }
    char *content = NULL;
    gsize filesize;
    string etags;
    string filename(argv[1]);

    RefPtr<File> file = File::create_for_commandline_arg(filename);
    file->load_contents(content, filesize, etags);

    cout << "File \"" << filename << "\" contains: " << endl;
    cout << content << endl;
}

/***End of Nick's code. Feel free to alter.***/

    JustTesting window;

    Gtk::Main::run(window);

    return 0;
}

